package com.virgo.demo.market.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.virgo.common.entity.ListDataVo;
import com.virgo.demo.market.domain.AdvPositionDo;
import com.virgo.demo.market.domain.bo.AdvPositionBo;
import com.virgo.demo.market.domain.vo.AdvPositionVo;
import jakarta.servlet.http.HttpServletRequest;

public interface AdvPositionService extends IService<AdvPositionDo> {

	/**
	 * 根据广告位标识查询
	 * @param positionCode String
	 * @return AdvPositionDo
	 */
	AdvPositionDo loadByPositionCode(String positionCode);

	/**
	 * 编辑广告位
	 * @param advPositionBo AdvPositionBo
	 */
	void saveAdvPosition(AdvPositionBo advPositionBo);

	/**
	 * 删除广告位
	 * @param codes String
	 */
	void deleteAdvPosition(String codes);

	/**
	 * 广告位列表
	 * @param request HttpServletRequest
	 * @return ListDataVo<AdvPositionVo>
	 */
	ListDataVo<AdvPositionVo> findList(HttpServletRequest request);
}